package com.szbmyoubao.app

import android.app.Application
import android.content.Intent
import com.ellecity06.debugtools.DebugTools
import com.szbmyoubao.app.ui.service_setting.ServiceSettingActivity
import okhttp3.OkHttpClient

/**
 * @author ellecity06
 * @time 2024/11/25 14:36
 * @des
 */
class DebugManager {
    companion object {
        fun initSdk(app: Application) {
//            if (!BuildConfig.SERVER_RELEASE) {
//                DebugTools.Companion.getInstance(app).init {
//                    val intent = Intent(app, ServiceSettingActivity::class.java)
//                    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
//                    app.startActivity(intent)
//                }
//            }
        }

        fun addLogInterceptor(app: Application, builder: OkHttpClient.Builder) {
//            if (!BuildConfig.SERVER_RELEASE)
//                builder.addInterceptor(
//                    DebugTools.Companion.getInstance(app).getRecordInterceptor()
//                )
        }
    }
}